#include <cstdio>
#include <cmath>
#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    cout << log10(n) + 1;
}
